Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jan 3, 2026

Post-dependency update, npm install hadn't been run and linting revealed a missing return type annotation in test mocks.

Changes

  • src/index.test.ts: Added explicit : string return type to mocked greet function to satisfy @typescript-eslint/explicit-function-return-type
  • package-lock.json: Refreshed after installing dependencies
// Before
jest.mock('./index.js', () => ({
  greet: () => 'Hello from AgentKit CLI!',
}));

// After
jest.mock('./index.js', () => ({
  greet: (): string => 'Hello from AgentKit CLI!',
}));
Original prompt

After update with the ZOD - I've got issues - run the verifications and update the code


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI and others added 2 commits January 3, 2026 01:33
Co-authored-by: vreshch <9742863+vreshch@users.noreply.github.com>
Co-authored-by: vreshch <9742863+vreshch@users.noreply.github.com>
Copilot AI changed the title [WIP] Run verifications and update code after ZOD update fix: add return type annotation to test mock Jan 3, 2026
Copilot AI requested a review from vreshch January 3, 2026 01:36
@vreshch vreshch marked this pull request as ready for review January 3, 2026 01:38
@vreshch vreshch merged commit f61f951 into master Jan 3, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants